package com.feel.mapper;

import com.feel.pojo.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: 刘永钦
 * @Date: 2024-09-03-14:06
 * @Description:
 */
@Mapper
public interface DepartmentMapper {
//    查询全部部门
    List<Department> getAll();
//    新增部门
    Integer addInfo(Department department);
//    更新部门
    Integer updateInfo(Department department);
//    通过id查询
    Department getById(Integer id);
//    通过部门名称查询
    Department getByName(String name);
//    删除部门
    Integer delInfo(Integer id);
}
